﻿using DevelopTool.Model.CommonModels;
using LiteDB;
using System;
using System.Collections.Generic;
using System.Drawing;

namespace DevelopTool.Model.DbModels.TableRelation
{
    /// <summary>
    /// 数据库表关系实体
    /// </summary>
    [Serializable]
    public class TableRelation : ManageMenu
    {
        /// <summary>
        /// 表节点集合
        /// </summary>
        public List<TableRelationNode> Nodes { get; set; }

        /// <summary>
        /// 表关系集合
        /// </summary>
        public List<TableRelationNodeConnection> Connections { get; set; }

        /// <summary>
        /// 画布的缩放比例
        /// </summary>
        public float CanvasScale { get; set; } = 1;

    }
}
